// index.js
// 日记聚合页

const config = require("../../config");

var app = getApp();

Page({
  data: {
    imgUrls: [
      '../../images/icons/205192237551102538.png',
      '../../images/icons/205192237551102538.png',
      '../../images/icons/205192237551102538.png'
    ],
    list: [
      { listImg: '../../images/icons/love.png', listOne: '爱吃肉还不爱动? 当心冠心病!', listTwo: '冠心病, 我该拿你怎么办?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '1111' },
      { listImg: '../../images/icons/love.png', listOne: '爱吃肉还不爱动? 当心冠心病!', listTwo: '冠心病, 我该拿你怎么办?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '111'},
      { listImg: '../../images/icons/love.png', listOne: '爱吃肉还不爱动? 当心冠心病!', listTwo: '冠心病, 我该拿你怎么办?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '11' },
      { listImg: '../../images/icons/love.png', listOne: '爱吃肉还不爱动? 当心冠心病!', listTwo: '冠心病, 我该拿你怎么办?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '1111' }    
    ],
    promotion:[
      { promotionImg: '../../images/icons/p2.png', promotionOne: '新疆优质一级红枣', promotionTwo:'￥30 / 斤'},
      { promotionImg: '../../images/icons/p1.png', promotionOne: '新疆优质一级枸杞', promotionTwo: '￥25 / 斤' },
      { promotionImg: '../../images/icons/p2.png', promotionOne: '新疆优质一级红枣', promotionTwo: '￥30 / 斤' },
      { promotionImg: '../../images/icons/p1.png', promotionOne: '新疆优质一级枸杞', promotionTwo: '￥25 / 斤' }
    ],
    nav_recommend:'../../images/icons/nav1-1.png',
    nav_activity:'../../images/icons/nav2.png',
    indicatorDots: false,
    autoplay: true,
    circular:true,
    interval: 2000,
    duration: 1000
  },
  recommend:function(event){
    // console.log(event);
    this.setData({
      nav_recommend:'../../images/icons/nav1-1.png',
      nav_activity: '../../images/icons/nav2.png',
      list: [
        { listImg: '../../images/icons/love.png', listOne: '爱吃肉还不爱动? 当心冠心病!', listTwo: '冠心病, 我该拿你怎么办?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '1111' },
        { listImg: '../../images/icons/love.png', listOne: '爱吃肉还不爱动? 当心冠心病!', listTwo: '冠心病, 我该拿你怎么办?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '111' },
        { listImg: '../../images/icons/love.png', listOne: '爱吃肉还不爱动? 当心冠心病!', listTwo: '冠心病, 我该拿你怎么办?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '11' },
        { listImg: '../../images/icons/love.png', listOne: '爱吃肉还不爱动? 当心冠心病!', listTwo: '冠心病, 我该拿你怎么办?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '1111' }

      ],
    })
  },
  activity: function (event) {
    this.setData({
      nav_recommend: '../../images/icons/nav1.png',
      nav_activity: '../../images/icons/nav2-1.png',
      list: [
        { listImg: '../../images/icons/鱼.jpg', listOne: '爱吃海鲜易得肾结石,真假?', listTwo: '听说不爱喝水也有影响?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '1111' },
        { listImg: '../../images/icons/鱼.jpg', listOne: '爱吃海鲜易得肾结石,真假?', listTwo: '听说不爱喝水也有影响?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '111' },
        { listImg: '../../images/icons/鱼.jpg', listOne: '爱吃海鲜易得肾结石,真假?', listTwo: '听说不爱喝水也有影响?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '11' },
        { listImg: '../../images/icons/鱼.jpg', listOne: '爱吃海鲜易得肾结石,真假?!', listTwo: '听说不爱喝水也有影响?', commendImg: '../../images/icons/n4.png', commendT: '1111', fabulousImg: '../../images/icons/n6.png', fabulous: '1111' }

      ],
      
    })
  },

})
